package com.stone;

import com.stone.util.NetworkUtil;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableEurekaClient
@EnableFeignClients
@SpringBootApplication
public class ConsumerServiceApplication {

    public static void main(String[] args) {
        int port = NetworkUtil.getPort();
        new SpringApplicationBuilder(ConsumerServiceApplication.class).properties("server.port=" + port).run(args);
    }


}
